rust/bupsplit: minor idiomatic fixes
authorLuca Bruno <luca.bruno@coreos.com>
Fri, 16 Mar 2018 21:33:11 +0000 (21:33 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 17 Mar 2018 19:59:06 +0000 (19:59 +0000)
commit52f7ba187821fa1bca10b752b3fb28b1fcf8d97a
tree1d6b7ab36f86776415fda2201ea547fd8d2542b4
parent4e4436beec35f4f48d9750fa39f0a3d7fa94de7e
rust/bupsplit: minor idiomatic fixes

This fixes a few un-idiomatic bits in Rust bupsplit code, getting rid
of some unchecked casts and an assert statement.

Closes: #1502
Approved by: cgwalters
rust/src/bupsplit.rs